<?php
namespace App\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class LessonPublishException extends HttpException
{
    protected $code = 'lesson.publish';

    public function __construct($message)
    {
        $this->message = $message;
        parent::__construct(400, $message);
    }
}
